﻿@model FantasyDraft2.Models.PlayerTrade

@{
    ViewBag.Title = "PlayerTrade";
}

<h2>Select two players to trade:</h2>

@using (Html.BeginForm()) {
    <table>
        <tr>
            <td>
                Team 1 Players:
            </td>
            <td>
                Team 2 Players:
            </td>
        </tr>
        <tr>
            <td>
                @Html.DropDownListFor(x => x.Player1Id,new SelectList(Model.TeamOnePlayers,"PlayerId","Name"))
            </td>
            <td>
                @Html.DropDownListFor(x => x.Player2Id,new SelectList(Model.TeamTwoPlayers,"PlayerId","Name"))
            </td>
            <td>
                 <input type="submit" value="Trade" />
            </td>
        </tr>
    </table>
    @Html.HiddenFor(x => Model.Team1Id);
    @Html.HiddenFor(x => Model.Team2Id);
}
